# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-validator-collection
_pkgname=validator-collection
pkgver=1.5.0
pkgrel=7
pkgdesc='Collection of 60+ Python functions for validating data.'
arch=('any')
url='https://pypi.org/project/validator-collection/#files'
license=('MIT')
depends=('python' 'python-jsonschema')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('9637c7b027c75637e488c438556e1596e11cc16f070b541346ab4dd67d4ad37e7ab39c6a355248228b501ca31e467b751e8528e183be5bfe84f231a7ca0eaf9d')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package_python-validator-collection() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

